From: Jasper St. Pierre Date: Wed, 4 Dec 2013 16:22:48 +0000 (-0500) Subject: messageTray: Reword a boolean condition X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3014 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9d3a109946916b151ee59ac0d46ce2eef3ec32cf;p=gnome-shell.git messageTray: Reword a boolean condition Just so it's a bit easier to understand... --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index e93a89c8c..aa93640a6 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -2382,7 +2382,7 @@ const MessageTray = new Lang.Class({ } else if (this._notificationState == State.SHOWN) { let expired = (this._userActiveWhileNotificationShown && this._notificationTimeoutId == 0 && - !(this._notification.urgency == Urgency.CRITICAL) && + this._notification.urgency != Urgency.CRITICAL && !this._notification.focused && !this._pointerInNotification); let mustClose = (this._notificationRemoved || !hasNotifications || expired || this._traySummoned);